function getUUID() {
    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
        return (c === 'x' ? (Math.random() * 16 | 0) : ('r&0x3' | '0x8')).toString(16)
    })
}

var publicKey =
    '-----BEGIN PUBLIC KEY-----' +
    'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtFHvmu+Xa6QmYCTLYKaD5yhwXAkECxurB2X9JVxr9K00mArcUwlM74mx8pFscOxKBvMLVxp8hJZZxAiLrNXi3BFto5XNlUpWxKSrHKeXw+RLXjoeOvIhvSusMV2hKpsEhJzBP47PSLBz5cy1+ndhEHhFAXJZt13yQkXM9jqg3uKdD5Dhrx73RuUJI+oUgRtvdaDwIryMm8rX16csRQgmOrbV64cwC56JCwyGtGknDIKMetdeJuVxHX2mWURV4AS+Nl5698Ls0fzOoWGbDQRyz+hDk3TF9UwTcoAKdU/rzFkSaBxgJ/29eUAtKlLzxH20RDVWU3DD3IBv/4+enMYpJQIDAQAB' +
    '-----END PUBLIC KEY-----';

function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
    var r = window.location.search.substr(1).match(reg);  //匹配目标参数
    if (r != null) return unescape(r[2]);
    return null; //返回参数值
}

function changeTab(index) {
    $(".ant-menu-root>li").each(function () {
        $(".ant-menu-root>li").removeClass('ant-menu-item-selected');
    });
    //language=JQuery-CSS
    $('.ant-menu-root>li:eq(' + index + ')').addClass('ant-menu-item-selected');
}